package cl.extractor;

import cl.url.Url2Extract;

public class RegionExtractor {
	int nroPaginas;
	Url2Extract url = null;
	String region;

	public void process(){
		VehiclesListExtractor vle = new VehiclesListExtractor();
		
		for(int i = 1;i<=nroPaginas;i++){
			url.setPagina(i);
			vle.extract(url.getUrl(),region);
		}
	}
	
	public int getNroPaginas() {
		return nroPaginas;
	}

	public void setNroPaginas(int nroPaginas) {
		this.nroPaginas = nroPaginas;
	}

	public Url2Extract getUrl() {
		return url;
	}

	public void setUrl(Url2Extract url) {
		this.url = url;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

}
